// app.js
App({
  mapKey: '7MKBZ-NGR65-ATQIV-QC2ZK-TDLCK-HBFFK',
  commonUrl: 'http://www.baidu.com',
  commonUrlPic: '/upload/picture/',
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        console.log("登录成功-获得code：",res)
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    userInfo: null
  }
})
